package cn.italkcloud.cph.constants.enums;

import lombok.Getter;

@Getter
public enum FailedEnum {

    COMMON("500", "请求失败"),
    NEED_PERM("401", "当前账号无权限"),
    IS_PRIVATE("401", "限制访问范围"),
    ERROR_TOKEN("405", "Token无效"),


    IS_EXITED("402", "请勿重复操作"),


    OPERATE_DB_FAILED("403", "数据库操作失败，请联系管理员或稍后再试"),
    PARAM_TYPE_ERROR("403", "请求类型有误"),
    CHARGE_CUSTOMER_NEED_BIND("403", "充值账号需要绑定"),
    CHARGE_CUSTOMER_ONLY_SELF("403", "只能充值自己的账号"),
    HAS_TASK_RUNNING("403", "有任务正在运行中，请停止后再试"),
    CAN_NOT_DEL_VOS_SERVER("403", "不能删除VOS服务器，请清理绑定账号后再试"),

    NOT_FOUND_VOS_SERVER("404", "未找到该VOS服务器，请确认VOS服务器配置后再试"),

    ;
    final String code;
    final String message;

    FailedEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }


}
